import { user } from "./data/user"

export const setToken = (username:string):string => {
  return `token_${username}`
}

export const login = (username:string,password:string):boolean => {
  return user.findIndex(v => v.username === username && v.password === password) !== -1
}